This article is to Uncle Bird's Linux private cuisine (basic study) of the third edition of the study notes, the original text can refer to the original book Chinese website Bird uncle's Linux private dishes.In the Linux environment, the operation
Compressing file meaning saves network transmission bandwidth and reduces disk usage. But a certain CPU will be used.1. GzipCompression directory is not supported, gzip directly with the file name, when compressed in the current directory, the
Gzip, bzip2, tar, zip command usage details 1. gzipgzip is a GNU compression program. It only compresses a single file. The basic usage is as follows: after the $ gzip filenameprogram is executed, the file name is changed to filename.gz, And the
Install BZIP2The order is as follows:
The code is as follows:
Make-f Makefile-libbz2_so &&
Make &&
Make install &&
CP Bzip2-shared/bin/bzip2 &&
Ln-s libbz2.so.1.0 libbz2.so &&
Cp-a libbz2.so*/lib &&
Rm/lib/libbz2.so &&
1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF decompression4, *.bz2 with bzip2-d or with BUNZIP2 decompression5, *.tar.bz2 with TAR–XJF decompression6, *. Z Extract with Uncompress7,
The original tar call bzip2 was compressed with the highest compression ratio-general Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by weixq316
For a long
Tar: create an archive file [Syntax] tar [option] tarfilefilename [command description] the file name must be followed by the-f parameter and
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.